
public class View {
	protected int x1, y1, x2, y2;		//Corners of view (top-left, bottom-right)
	protected int width, height;
	protected Filters FLT;		//Filter for this view
	
	public boolean mouseOver() {
        if(GLOBAL.processing.mouseX > x1 && GLOBAL.processing.mouseX < x2 && 
                        GLOBAL.processing.mouseY > y1 && GLOBAL.processing.mouseY < y2) return true;
        return false;
    }

	public void draw() {	
	}
	
	public void resize(int _x1, int _y1, int _x2, int _y2) {
		x1 = _x1;
		y1 = _y1;
		x2 = _x2;
		y2 = _y2;
		
		width = x2 - x1;
		height = y2 - y1;
	}
	
	public void handleEvent(String event) {
	}
	
	public void handleEvent(int event) {
	}
}
